Skip to content

Add export extension test HTML pages for Cypress tests#574

Merged
wenzhixin merged 1 commit into
developfrom
feature/export-test-pages
Apr 13, 2026
Merged

Add export extension test HTML pages for Cypress tests#574
wenzhixin merged 1 commit into
developfrom
feature/export-test-pages

Conversation

@wenzhixin
Copy link
Copy Markdown
Owner

@wenzhixin wenzhixin commented Apr 11, 2026

Description

Add 12 HTML test pages for the export extension to support Cypress E2E testing.

Each page includes the required tableExport.jquery.plugin dependency and follows the existing init() pattern used across the project.

Test pages added

  • export-showExport — Test showExport option to display export button
  • export-customTypes — Test exportTypes with multiple supported types
  • export-singleType — Test single export type (button vs dropdown)
  • export-multipleTypes — Test exportTypes with multiple types (partial list)
  • export-dataType-all — Test exportDataType=all with pagination
  • export-dataType-selected — Test exportDataType=selected with checkbox selection
  • export-events — Test export-started and export-saved events
  • export-fileName-function — Test exportOptions.fileName as function
  • export-footer — Test exportFooter=true to include table footer
  • export-forceExport — Test forceExport column option to export hidden columns
  • export-forceHide — Test forceHide column option to hide columns from export
  • export-method — Test exportTable() method for programmatic export

Related

Corresponding Cypress tests are in bootstrap-table repo: cypress/e2e/extensions/export/

@wenzhixin wenzhixin force-pushed the feature/export-test-pages branch from 3fde107 to be770ed Compare April 11, 2026 16:59
@wenzhixin wenzhixin requested a review from Copilot April 11, 2026 17:19
@wenzhixin
Copy link
Copy Markdown
Owner Author

wenzhixin commented Apr 11, 2026

Ref wenzhixin/bootstrap-table#8071

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a set of HTML fixtures under for-tests/ to exercise the Bootstrap Table export extension in Cypress E2E scenarios.

Changes:

  • Added 12 export-focused HTML test pages covering showExport, exportTypes, exportDataType, events, filename customization, footer export, column force options, and the exportTable() method.
  • Introduced simple per-page datasets and minimal UI hooks (e.g., button trigger, window flags) to support E2E assertions.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
for-tests/extensions/export/export-showExport.html Fixture for validating showExport renders export UI.
for-tests/extensions/export/export-customTypes.html Fixture for validating multiple exportTypes values.
for-tests/extensions/export/export-singleType.html Fixture for single export type UI behavior (button vs dropdown).
for-tests/extensions/export/export-stringTypes.html Fixture intended to validate exportTypes provided in string form.
for-tests/extensions/export/export-dataType-all.html Fixture for validating exportDataType: 'all' with pagination.
for-tests/extensions/export/export-dataType-selected.html Fixture for validating exportDataType: 'selected' with checkbox selection.
for-tests/extensions/export/export-events.html Fixture for validating export lifecycle events (export-started, export-saved).
for-tests/extensions/export/export-fileName-function.html Fixture for validating exportOptions.fileName as a function.
for-tests/extensions/export/export-footer.html Fixture for validating exportFooter: true includes <tfoot> content.
for-tests/extensions/export/export-forceExport.html Fixture for validating data-force-export exports hidden columns.
for-tests/extensions/export/export-forceHide.html Fixture for validating data-force-hide excludes columns from export.
for-tests/extensions/export/export-method.html Fixture for validating programmatic export via exportTable() method.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread for-tests/extensions/export/export-showExport.html
Comment thread for-tests/extensions/export/export-singleType.html
Comment thread for-tests/extensions/export/export-multipleTypes.html
Comment thread for-tests/extensions/export/export-customTypes.html
Comment thread for-tests/extensions/export/export-dataType-all.html
Comment thread for-tests/extensions/export/export-forceExport.html
Comment thread for-tests/extensions/export/export-forceHide.html
Comment thread for-tests/extensions/export/export-method.html
Comment thread for-tests/extensions/export/export-stringTypes.html
Comment thread for-tests/extensions/export/export-customTypes.html
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread for-tests/extensions/export/export-footer.html
- Add 12 test HTML files for export extension options
- Test showExport, exportTypes, exportDataType, exportFooter, etc.
- Test column options: forceExport, forceHide
- Test events: export-started, export-saved
- Test methods: exportTable()
- Test exportOptions.fileName as function
@wenzhixin wenzhixin force-pushed the feature/export-test-pages branch from 2e618f8 to 596a1c6 Compare April 12, 2026 23:33
@wenzhixin wenzhixin merged commit 8e31c6e into develop Apr 13, 2026
1 check passed
@wenzhixin wenzhixin deleted the feature/export-test-pages branch April 13, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants